<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>就诊提醒</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<link rel="stylesheet" href="../css/mui.min.css" />
		<link rel="stylesheet" href="../css/main.css" />
		<link rel="stylesheet" href="../css/mui.picker.css" />
		<link rel="stylesheet" href="../css/mui.poppicker.css" />
		<link rel="stylesheet" href="../css/feedback.css" />
		<link rel="stylesheet" href="../css/iconfont.css" />
		<link rel="stylesheet" href="../css/jquery-labelauty.css" />

		<!--图标-->
		<link rel="stylesheet" type="text/css" href="../css/icons-extra.css" />

		<style>
			.give-margin{
				margin-bottom: 4px;
			}
			.text-padding{
				width: 82%;
				line-height: 25px;
				
			}
			.wutu{
				text-align: center;
				padding-top: 1.8rem;
				background: transparent;
			}
		</style>
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title" id="ptitle">就诊提醒</h1>
			<!--<span style="float: right;"><button type="button" class="mui-btn" id="btn_fdt_add_member">添加成员</button></span>-->
		</header>
		<div class="mui-content" id="content">
			<div id="signedDataDiv" class="memberListUl">
				<!--<div class="mui-content-padded wutu"><img src="../images/no_data/1-01.png" style="width: 150px;"></div>-->
			</div>
		</div>
	</body>
	<script type="text/javascript" src="../js/mui.min.js"></script>
	<script type="text/javascript" src="../plugs/qs/qs.immersed.js"></script>
	<script type="text/javascript" src="../js/app.js"></script>
	<script type="text/javascript" src="../js/constants.js"></script>
	<script type="text/javascript" src="../js/xiangyingshi.js"></script>
	<script type="text/javascript" src="../js/jquery-3.1.1.min.js"></script>
	<script type="text/javascript" src="../js/jquery-labelauty.js"></script>

	<script type="text/javascript" src="../plugs/moment/moment.min.js"></script>
	<script type="text/javascript" src="../js/art/template-web.js"></script>
	<script type="text/javascript" src="../js/qs/qs.art.extend.js"></script>
	<script type="text/javascript" src="../js/qs/qs.template.js"></script>
	<script type="text/javascript" src="../js/iscroll/iscroll-probe.js"></script>
	<script type="text/javascript" src="../js/qs/qs.iscroll.js"></script>
	<script>
		mui.init({
			keyEventBind: {
				backbutton: true //打开back按键监听
			},
			beforeback: function() {
				//返回true，继续页面关闭逻辑  
				mui.back;
				return true;
			}
		});

		mui.plusReady(function() {
			if(plus.navigator.isImmersedStatusbar()) { // 兼容immersed状态栏模式
				// 获取状态栏高度并根据业务需求处理，这里重新计算了子窗口的偏移位置
				topoffset = (Math.round(plus.navigator.getStatusbarHeight()) + 45) + 'px';
				document.querySelector("header").style.height = topoffset;
				document.querySelector("header").style.paddingTop = "20px";
				document.querySelector(".mui-bar-nav~.mui-content").style.paddingTop = topoffset;
			}
			var currentView = plus.webview.currentWebview();
			var teamInfo = currentView.teamInfo;
			
			var fdt=null;
			if(currentView.extras){
				fdt=currentView.extras;
			}else{
				fdt=currentView.fdtid;
			}
			
			console.log("fdt"+fdt);
			currentView.show('slide-in-right', 200);
			plus.nativeUI.closeWaiting();
			var URL=serverAddress+"/api/appfamilydoctorteam/getDTBList";
			var filter = {};
			filter.fdt = fdt;
			filter.patient = localStorage.getItem("TOKENID");
			filter.serviceType = "JZTX";
			var success = function(data) {
				console.log("data------>"+JSON.stringify(data));
				if(data.result == "success") {
					
					var tlData = {
						sub: data.obj
					}
					if(data.obj.length==0){
						$("#signedDataDiv").html('<div class="mui-content-padded wutu"><img src="../images/no_data/1-01.png" style="width: 150px;"></div>')
					
					}else{
						$("#signedDataDiv").processTL(templateRegister.doctorRemindingHistory, tlData, 'append', function() {
						
						})
					}
				} else {
					mui.toast(data.msg);
				}
			};
			commonHttpUtils(URL, "post", filter, success, error);
		});
	</script>

</html>